package io.finer.erp.jeecg.bas.service.impl;

import io.finer.erp.jeecg.bas.entity.ZrkPushSet;
import io.finer.erp.jeecg.bas.mapper.ZrkPushSetMapper;
import io.finer.erp.jeecg.bas.service.IZrkPushSetService;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 设置消息推送节点
 * @Author: jeecg-boot
 * @Date:   2020-09-02
 * @Version: V1.0
 */
@Service
public class ZrkPushSetServiceImpl extends ServiceImpl<ZrkPushSetMapper, ZrkPushSet> implements IZrkPushSetService {
	@Override
	public List<ZrkPushSet> selectByMessageTemplateId(String templateId) {
		LambdaQueryWrapper<ZrkPushSet> query = new LambdaQueryWrapper<>();
		query.eq(ZrkPushSet::getMessageId, templateId);
		List<ZrkPushSet> list = list(query);
		return list;
	}

}
